package com.example.moblie2021606143cwj0408;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {


    private TextView tvMainTitle;
    private Button btnAdd;
    private Button btnGetMax;
    private Button btnbtnPasswordPoyi;
    private Button btnTemperature;
    private Button btnfdhs;
    private Button btnGrades;
    private Button btnNumber;
    private Button btnlr;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();
        btnAdd.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this, MainActivity2.class);
                startActivity(intent);
            }
        });
        btnGetMax.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this, MainActivity3.class);
                startActivity(intent);
            }
        });
        btnbtnPasswordPoyi.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this, MainActivity4.class);
                startActivity(intent);


            }
        });
        btnTemperature.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this, MainActivity5.class);
                startActivity(intent);
            }
        });
        btnfdhs.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this, MainActivity6.class);
                startActivity(intent);
            }
        });

        btnGrades.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this, MainActivity7.class);
                startActivity(intent);
            }
        });


        btnNumber.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this, MainActivity8.class);
                startActivity(intent);
            }
        });
        btnlr.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
                Intent intent = new Intent(MainActivity.this, MainActivity9.class);
                startActivity(intent);
            }

    

    private void initView() {
        tvMainTitle = findViewById(R.id.tv_main_title);
        btnAdd = findViewById(R.id.btnAdd);
        btnGetMax = findViewById(R.id.btnGetMax);
        btnbtnPasswordPoyi = findViewById(R.id.btnbtnPasswordPoyi);
        btnTemperature = findViewById(R.id.btnTemperature);
        btnfdhs = findViewById(R.id.btnfdhs);
        btnGrades = findViewById(R.id.btnGrades);
        btnNumber = findViewById(R.id.btnNumber);
        btnlr = findViewById(R.id.btnlr);
    }
}